This folder contains code and data to replicate analysis in Macchiavello and Morjaria "Competition and Relational Contracts in the Rwanda Coffee Chain", November 2020

* Do: 

Change the root directory path on line 25 of "DO/Master.do", i.e. replace the XXXX with file path and run to execute the analysis.

Tables and figures will be compiled in "Output/Tables", and "Output/Figures". These files are also included in the replication package.

The folder contains 3 folders of do-files that are referenced by the "Master.do"

1) "auxiliary" has files that set parameters used often in the analysis, and other additional programs that are not included in STATA. 

2) "Tables" has individual files that make each table in the paper including the Online Data Appendix. The output gets stored in the folder "Output/Tables"

4) "Figures" has individual files that make each figure in the paper including the Online Data Appendix. The output gets stored in the folder "Output/Figures".


* Data: 

rwanda_dataset is the core dataset of the paper and contains all variables needed for the replication of tables and figures in the main text. This core dataset also includes some variables that are needed for robustness purposes (Online Appendix Tables and Figures) the census_survey dataset includes additional variables needed for the Online Data Appendix.


* Output: 

contains the TeX file and is a repository for the output of the analysis do-files. It has subfolders for figures and tables 

Notes:

- In general several Tables will need cosmetic manual editing to match manuscript tables. Adjusted r^2 for IV only, number formatting.
- Online Appendix Table B8 [Robusntess to Definitions] is the tex file "definitions'' note this is a manual combination of two output tex files: ``definitions_ca'' and ``definitions_competition''. 
- An excel file README_CompRelcon_Nov2020_2of2 is also included in the folder that provides a clear mapping of the do-files/datasets, description and notes for each of the main tables and figures in the manuscript.


For questions/clarifications please do not hestitate to contact us on: a.morjaria@kellogg.northwestern.edu

 

